package com.efast.cafe.portal.security.handler;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
import org.springframework.stereotype.Component;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.cafe.portal.security.core.AuthenticationFactory;

import net.sf.json.JSONObject;
/**
 * 
    * @ClassName: MyLogoutSuccessHandler
    * @Description: 安全登出成功后返回
    * @author xuanming.feng
    * @date 2018年8月3日
    *
 */
@Component
public class MyLogoutSuccessHandler implements LogoutSuccessHandler{

	@Override
	public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
			throws IOException, ServletException {
		AuthenticationFactory.onLogoutSuccess(request, response, authentication);
	}

}
